package top.wuhunyu.bean.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;
import top.wuhunyu.bean.service.A;

/**
 * @author gongzhiqiang
 * @date 2025-04-07 14:11
 */

@Service("defaultA")
@ConditionalOnMissingBean(A.class)
@Slf4j
public class DefaultA {

    static {
        log.info("{} is loaded", DefaultA.class.getName());
    }

    public DefaultA() {
        log.info("{}'s constructor is invoked", this.getClass().getName());
    }
}
